home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / lang / rcs567pc / rcsfront / makefile < prev    next >
Makefile  |  1994-12-09  |  1KB  |  50 lines

  1. # Makefile for rcsfront
  2.  
  3. # default target
  4. default:
  5.     @echo "Available targets:"
  6.     @echo "    emx emx-debug emxdos"
  7.     @echo "    msc msc-debug mscdos"
  8.  
  9. # emx 0.9 (gcc) -> 32-bit OS/2 executables
  10. emx:
  11.     $(MAKE) all CC="gcc -Zomf -Zmt -O" \
  12.     LDFLAGS="-s -Zstack 512 -Zcrtdll" O=".obj" DEF="cio.def"
  13. emx-debug:
  14.     $(MAKE) all CC="gcc -g" LDFLAGS="" O=".o"
  15.  
  16. # emx 0.9 (gcc) -> 32-bit DOS executables
  17. emxdos:
  18.     $(MAKE) all CC="gcc -O" LDFLAGS="-s" O=".o" EXTRA="pipe.o"
  19.  
  20. # Microsoft C 6.00A -> 16-bit OS/2 (and DOS, family mode) executables
  21. msc:
  22.     $(MAKE) all CC="cl -nologo -AS -W1 -J -Zap -G2s -Ocegt" \
  23.     LDFLAGS="setargv.obj -Lp -F 4000 -link /noe" O=".obj" \
  24.     EXTRA="pipe.obj" DEF="cio.def"
  25. msc-debug:
  26.     $(MAKE) all CC="cl -nologo -AS -W1 -J -Ziap -G2 -Od" \
  27.     LDFLAGS="setargv.obj -Lp -F 4000 -link /noe" O=".obj" \
  28.     EXTRA="pipe.obj"
  29.  
  30. # Microsoft C 6.00A -> 16-bit DOS-only executables
  31. mscdos:
  32.     $(MAKE) all CC="cl -nologo -AS -W1 -J -Zap -G2s -Ocegt" \
  33.     LDFLAGS="setargv.obj -Lr -F 4000 -link /noe" O=".obj" \
  34.     EXTRA="pipe.obj"
  35.  
  36. CFLAGS = -DOS2
  37.  
  38. all:  cii.exe coo.exe
  39.  
  40. .SUFFIXES: .c $O
  41.  
  42. .c$O:
  43.     $(CC) $(CFLAGS) -c $*.c
  44.  
  45. cii.exe: cii$O $(DEF)
  46.     $(CC) cii$O -o $@ $(DEF) $(LDFLAGS) 
  47.  
  48. coo.exe: cio$O $(EXTRA) $(DEF)
  49.     $(CC) cio$O $(EXTRA) -o $@ $(DEF) $(LDFLAGS) 
  50.